package eteam.aps.service.impl;

import eteam.aps.mapper.VmocOrdersMapper;
import eteam.aps.model.entity.VmocOrders;
import eteam.aps.service.VmocOrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 工单;U8工单 业务层 实现类
 *
 * @author LiuLei
 */
@Service
public class VmocOrdersServiceImpl implements VmocOrdersService {

    @Autowired
    private VmocOrdersMapper vmocOrdersMapper;

    @Override
    public List<VmocOrders> list() {
        return vmocOrdersMapper.list();
    }

    @Override
    public VmocOrders get(String fId) {
        return vmocOrdersMapper.get(fId);
    }

    @Override
    @Transactional
    public int updateById(String username, String password) throws Exception {
        int i = vmocOrdersMapper.updateById(username, password);
        System.out.println(1/0);
        return i;
    }
}
